<?php
/**
 * Created by PhpStorm.
 * User: KaZeline
 * Date: 15-4-16
 * Time: 下午3:28
 */

use PFT\Db;
$conf = include '/var/www/html/new/d/module/wcb/adtest/db.conf.php';
include '/var/www/html/new/d/module/wcb/adtest/db.class.php';
include '/var/www/html/new/d/common/func.inc.php';
$sql = "select * from pft_account_set limit 10";
Db::conf($conf['remote_1']);
$stmt = Db::connect()->prepare($sql);
$stmt->execute();
$r = $stmt->fetchAll(PDO::FETCH_ASSOC);
print_r($r);
echo '<br/>';
echo "记录数：".count($r).'<br/>';

//$tmp = Db::fetchAll($sql);